{extend name='public/base'}
{block name="title"}
<title>用户协议</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
{/block}
{block name="css"}
<link rel="stylesheet" href="__CSS__/user.css">
{/block}
{block name="header"}{/block}
{block name="style"}
<style>
    body {
        background: #fff;
    }

    .ect-wrapper {
        margin: 5% 3%;
    }

    .title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5%;
        text-align: center;
    }

    .content {
        font-size: 14px;
        line-height: 1.6;
        text-indent: 5%;
    }
</style>
{/block}
{block name="backHome"}{/block}
{block name="content"}
<div class="ect-wrapper">
    <input type="file" name="file" id="file">
</div>
{/block}
{block name="script"}
<script>
    $(function () {
        $('input').change(function (e) {
            $.ajaxFileUpload({
                url: "uploadImage",
                secureuri: false, // 是否启用安全提交
                fileElementId: 'file', //  需要上传的文件域的ID，即<input type="file">的ID
                dataType: 'json',
                data: {},
                type: 'post',
                timeout: 20000,
                beforeSend: function () {

                },
                success: function (res) {
                },
                error: function (data, status, e) //服务器响应失败处理函数
                {
                    layer.close(index);
                    alert(e);
                }
            })
        });
    });
</script>
{/block}
{block name="footer"}{/block}
{block name="share"}{/block}